package org.example.main;

import org.example.domain.JsonData;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: WangShengJie
 * @Date: 2025/5/26
 */
public class JsonDataDemo {
    public static void main(String[] args) {

        Map resultMap = new HashMap();
        resultMap.put("customerNo", "4545454441656");
        resultMap.put("type", "update");
        resultMap.put("wxWorkFlag", "Y");
        JsonData jsonData = JsonData.buildError("1545");

//        Map data = (Map) jsonData.getData();
//        System.out.println(data);
//        Object wxWorkFlag = data.get("wxWorkFlag");
//        System.out.println(wxWorkFlag);

        if (Integer.valueOf(-1).equals(jsonData.getCode())) {
            System.out.println("success");
        }

    }
}
